﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddCustomer.aspx.cs" Inherits="RealEstateCenter.AddCustomer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="display:inline-block;">
        <div style="float: left; line-height:2.5;">
            Customer Name:<br />
            Customer Tel No:<br />
            Customer E-Mail:<br />
        </div>
        <div style="float: right;">
            <asp:TextBox ID="customer_name" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="customer_name" 
            ErrorMessage="- You must type customer name!" CssClass="hata" 
                Display="Dynamic"></asp:RequiredFieldValidator>
            <br />
            <asp:TextBox ID="customer_tel_no" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="customer_tel_no" 
            ErrorMessage="- You must type customer telephone number!" CssClass="hata" 
                Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="customer_tel_no" CssClass="hata" Display="Dynamic" 
            ErrorMessage="- Telephone number is not valid" MaximumValue="9999999999" 
            MinimumValue="1000000"></asp:RangeValidator>
            <br />
            <asp:TextBox ID="customer_mail" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="customer_name" 
            ErrorMessage="- You must type customer e-mail!" CssClass="hata" 
                Display="Dynamic"></asp:RequiredFieldValidator>
        
        </div>
    </div>
    <div>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
        Text="Add Customer" Width="137px" /></div>
</asp:Content>
